Release 10.1A: OpenEdge Development:
Programming Interfaces
Importing policies from XML
OpenEdge provides the persistent procedure,
src/auditing/_imp-policies.pthat provides an API to import an XML file containing audit policies into either a database or a ProDataSet. This procedure must be executed persistently and then the caller should execute the internal procedures depending on the target for the policies—a ProDataSet or a database. This procedure is used by both the Audit Policy Maintenance tool and the Data Administration tool when importing audit policies from an XML file.For a database, call the import-xml-db procedure and save-changes-to-db procedure. For a ProDataSet, call the import-xml-fill-dset procedure and copy-changes-to-dset procedure. The
Note: Import procedure for loading audit policies from an XML file into an OpenEdge database does not refresh the database cache automatically. It's up to the caller to decide if the cache should be refreshed. You can either call the refresh-db-cache procedure or directly call thecleanupinternal procedure should be called before deleting the persistent procedure.AUDIT-POLICY:REFRESH-AUDIT-POLICY()method.The following example is a combination of pseudo-code and 4GL that shows how to use some of the procedures that are provided in
_imp-policies.pand described in the following sections:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |